/**
 *	单据操作菜单-flowmenu
 *	开发者：雨中磐石
 *	地址：www.rockoa.com
 *	日期：2023-07-19
 */

package com.framework.Module.flow.flowmenu;

import com.framework.Table.Table;
import com.framerock.db.DBConn;
import com.framerock.baselib.Rock;

public class Tableflowmenu extends  Table{

    protected void initTable() {
        this.tablename   = "flowmenu";
        this.tablenamesm = "单据操作设置";

        this.flowsetMap  = Rock.getMap(new String[]{
                "type", "系统",
                "sort", "915",
                "isxt", "2",
        });
        this.addfields("num", "varchar(50)", "", "编号", new String[]{

        });
        this.addfields("name", "varchar(100)", "", "显示名称", new String[]{
                "isbt","1",
                "isss","1",
        });
        this.addfields("type", "tinyint(1)", "1", "类型@flowmenutype,value", new String[]{
                "isbt","1",
                "fieldstype","select"
        });
        this.addfields("actname", "varchar(100)", "", "动作名称", new String[]{
                "islb","0"
        });
        this.addfields("statusname", "varchar(50)", "", "状态名称", new String[]{
                "islb","0"
        });
        this.addfields("statuscolor", "varchar(50)", "", "状态颜色", new String[]{
                "islb","0"
        });
        this.addfields("recename", "varchar(500)", "", "适用人员@receid", new String[]{
                "isss","1",
                "fieldstype","changedeptusercheck",
        });
        this.addfields("receid", "varchar(500)", "", "适用人员ID", new String[]{
                "islu","0",
                "islb","0",
        });
        this.addfields("where", "varchar(500)", "", "显示条件@@写SQL条件满足条件才显示", new String[]{
                "isss","0",
                "isalign","1",
                "fieldstype","textarea",
                "islb","0"
        });
        this.addfields("explain", "varchar(100)", "", "说明", new String[]{
                "isss","0",
                "isalign","1",
                "fieldstype","textarea",
        });
        this.addfields("upcont", "varchar(500)", "", "更新内容", new String[]{
                "islb","0",
                "fieldstype","textarea",
                "islb","0"
        });
        this.addfields("cid", "int(11)", "0", "对应单位", new String[]{
                "islu","0",
                "islb","1",
        });
        this.addfields("modeid", "int(11)", "0", "模块ID", new String[]{
                "isbt","1",
                "islb","0",
                "attr","readonly"
        });
        this.addfields("status", "tinyint(1)", "1", "状态@0|停用|gray,1|启用|green@启用菜单", new String[]{
                "ispx","1",
                "iseditlx","1",
                "fieldstype", "checkbox"
        });
        this.addfields("islog", "tinyint(1)", "1", "写入日志@@在操作记录显示", new String[]{

        });
        this.addfields("issm", "tinyint(1)", "0", "输入说明@0|选填,1|必填@必须输入说明", new String[]{
                "fieldstype", "checkbox"
        });
        this.addfields("iszs", "tinyint(1)", "0", "详情页@@在详情页里显示", new String[]{

        });
        this.addfields("isup", "tinyint(1)", "0", "上传文件@0|不需要,1|必须上传,2|选上传", new String[]{
                "fieldstype", "select"
        });
        this.addfields("uptype", "varchar(50)", "", "上传类型@@多个,分开如:doc,pdf", new String[]{
                "islb", "0"
        });
        this.addfields("sort", "int(11)", "0", "排序号", new String[]{
                "ispx","1",
                "iseditlx","2",
        });

        this.addfields("cid", "KEY", "`cid`", "单位ID");
        this.addfields("modeid", "KEY", "`cid`", "模块ID");

    }
}
